<template>
	<div class="paginator">
		<div v-if="page != 1" class="prev-wrap col-md-6 col-xs-6">
			<a :href="'?page=' + (page * 1 - 1) + '&size='+ size" class="prev-page">👈 上一页</a>
		</div>
		<div v-if="total > page * size" class="next-wrap col-md-6 col-xs-6 col-md-offset-6 col-xs-offset-6">
			<a :href="'?page=' + (page * 1 + 1) + '&size='+ size" class="next-page">下一页 👉</a>
		</div>
	</div>
</template>

<script>
	module.exports = {
		name: "paging",
		props: ['route', 'page', 'size', 'total'],
	}
</script>

<style scoped>

</style>
